<?php
$arrData = $this->arrData;
?>
<form name="frm" id="frm" action="<?php echo BASE_URL_CLUB.'/admin/update' ?>" method="post" enctype="multipart/form-data">
    <table class="detail_info">
        <tbody>
            <tr>
                <td class="column_left">
                    ID <span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input disabled type="text" size="25" value="<?php echo $arrData['articleid'];?>" />
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Tiêu đề <span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="text" name="txtTitle" id="txtTitle" size="50" value="<?php echo $arrData['title'];?>" maxlength="200" />
                    <span id="title_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Thể loại
                </td>
                <td class="column_right">
                <?php
                    switch ( $arrData['categoryid'] )
                    {
                        case $this->categoryConfig['listteam']:
                            $categoryName   = 'Đội bóng';
                            break;
                        case $this->categoryConfig['eurohistory']:
                            $categoryName   = 'Lịch sử euro';
                            break;
                        case $this->categoryConfig['none']:
                        default:
                            $categoryName   = 'Bài dự thi';
                            break;
                    }//end switch
                ?>
                    <input disabled type="text" size="25" value="<?php echo $categoryName;?>" />
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Hình đại diện
                </td>
                <td class="column_right">
                    <input type="file" name="txtfile" id="txtfile" size="25" value="" /><br>
                    <img src="<?php echo UPLOAD_URL_CLUB.$arrData['image'];?>" align="absmiddle" width="200" height="150" />
                    <input type="hidden" name="image" id="image" value="<?php echo $arrData['image'];?>">
                </td>
            </tr>
        <?php if ( $arrData['categoryid'] == $this->categoryConfig['listteam'] ) {?>
            <tr class="postteam">
                <td class="column_left">
                    Sân nhà
                </td>
                <td class="column_right">
                    <input type="text" name="txtHome" id="txtHome" size="50" maxlength="100" value="<?php echo $arrData['home'];?>" />
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Huấn luyện viên
                </td>
                <td class="column_right">
                    <input type="text" name="txtCoach" id="txtCoach" size="50" maxlength="100" value="<?php echo $arrData['coachman'];?>" />
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Giải thưởng
                </td>
                <td class="column_right">
                    <textarea cols="77" rows="5" name="txtAward" id="txtAward"><?php echo $arrData['award'];?></textarea>
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Thông tin
                </td>
                <td class="column_right">
                    <textarea cols="77" rows="5" name="txtInfo" id="txtInfo"><?php echo $arrData['info_club'];?></textarea>
                </td>
            </tr>
        <?php }//end if?>
            <tr>
                <td class="column_left">
                     Nội dung <span style="color: red;">*</span>
                </td>
                <td class="column_right">
                     <textarea cols="25" rows="5" name="ck_content" id="ck_content"><?php echo $arrData['content'];  ?></textarea>
                     <span id="content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Status
                </td>
                <td class="column_right">
                    <select name="status" style="width: 100px;">
                        <option value="1" <?php if($arrData['status'] == 1) echo 'selected'; ?>>Active</option>
                        <option value="2" <?php if($arrData['status'] == 2) echo 'selected'; ?>>Inactive</option>
                    </select>
                </td>
            </tr>
        </tbody>
    </table>
<div class="btn_back">
    <div class="btn_back">
        <input type="submit" name="submit" value="Cập nhật" />
        <input type="button" name="cancel" value="Bỏ qua" onclick="window.location='<?php echo BASE_URL_CLUB;?>/admin';" />
    </div>
</div>
    <input type="hidden" name="txtid" id="txtid" value="<?php echo $arrData['articleid'];?>" />
</form>
